---------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/TJRyan/Dropbox/Facebook Experiments/Replication files/import-
> manip.log
  log type:  text
 opened on:  31 Aug 2015, 11:19:30

. do "/Users/TJRyan/Dropbox/Facebook Experiments/Replication files/import-manip.d
> o"

. 
. clear all

. set more off

. insheet using "manip.csv"
(13 vars, 160 obs)

. 
. * Combine two columns into one, for each response
. foreach num of numlist 1/5 {
  2.         gen resp`num' = max(opolicy_`num', ogaffe_`num')
  3.         }
(4 missing values generated)
(4 missing values generated)
(4 missing values generated)
(4 missing values generated)
(4 missing values generated)

. gen novel = max(opnov, ognov)   
(5 missing values generated)

. 
. * Label responses
. rename resp1 policy

. rename resp2 fact

. rename resp3 econ

. rename resp4 age

. rename resp5 race

. 
. * Random assignment
. gen policycond = 0

. replace policycond = 1 if opolicy_1!=.
(80 real changes made)

. 
. * Scale everything 0 - 1
. foreach var in policy fact econ age race {
  2.         replace `var' = (`var'-1)/4
  3.         }
(156 real changes made)
(156 real changes made)
(156 real changes made)
(156 real changes made)
(156 real changes made)

. replace novel = (novel-1)/4 
(155 real changes made)

. 
. save "manip.dta", replace
file manip.dta saved

. 
. 
end of do-file

. log close
      name:  <unnamed>
       log:  /Users/TJRyan/Dropbox/Facebook Experiments/Replication files/import-
> manip.log
  log type:  text
 closed on:  31 Aug 2015, 11:19:37
---------------------------------------------------------------------------------
